package com.xh.bussiness.tiku.bean.dto;

import com.xh.core.bean.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/3/5
 */
@Data
@ApiModel
public class KnowledgeDto extends BaseDto implements Serializable {

    @ApiModelProperty("知识点ID")
    private String id;

    @ApiModelProperty("知识点名称")
    private String name;

    @ApiModelProperty("父节点ID")
    private String parentId;

    private String parentPath;

    private String parentPathName;

    private String path;

    private String pathName;

    @ApiModelProperty("排序")
    private Integer orderNo;

    @ApiModelProperty("层级")
    private Integer level;

    @ApiModelProperty("no")
    private String no;

    @ApiModelProperty("排序序号")
    private Integer sortIndex;

	private List<KnowledgeDto> childs;
    @ApiModelProperty("数量")
    private Integer count;

    /**
     * 前端用于区分数据
     */
    @ApiModelProperty("前端用于区分数据")
    private Integer fromType = 0;
}
